import request from '../../utils/request'


// 获取未删除的健康百科数据
export function getHealthyList(){
    return request({
        url:'/healthBaike',
        params:{
            isdelete:0
        }
    })
}

// 删除健康百科数据
export function delHealthy(id){
    return request({
        url:`/healthBaike/${id}`,
        method:'patch',
        data:{
            isdelete:1
        }
    })
}

// 修改健康百科信息
export function updataHealthy(id,obj){
    return request({
        url:`/healthBaike/${id}`,
        method:'patch',
        data:obj
    })
}

// 添加健康百科信息
export function addHealthy(obj){
    return request({
        url:'/healthBaike',
        method:'post',
        data:obj
    })
}

